cmake_minimum_required(VERSION 3.17)
project(FfmpegTest)

set(CMAKE_CXX_STANDARD 14)
include(cmake/FindFFmpeg.cmake)

set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH})

include_directories(${FFMPEG_INCLUDE_DIRS})

find_package(FFmpeg COMPONENTS AVCODEC AVFORMAT AVUTIL AVDEVICE REQUIRED)

add_executable(FfmpegTest main.cpp)

target_link_libraries(${PROJECT_NAME}
        ${FFMPEG_LIBRARIES}
        )